package cn.wolfcode.luowowo.comment.service;

import cn.wolfcode.luowowo.comment.domain.StrategyComment;
import cn.wolfcode.luowowo.comment.query.StrategyCommentQuery;
import org.springframework.data.domain.Page;

/**
 * 攻略评论服务
 */
public interface IStrategyCommentService {


    void save(StrategyComment comment);


    /**
     * 分页
     *
     */
    Page<StrategyComment> query(StrategyCommentQuery qo);

    /**
     * 评论的点赞
     * @param toid   评论 id
     * @param fromid    点赞用户的id
     * @return
     */
    boolean thumbUp(String toid, Long fromid);
}
